![]() |
PATH![]() |
![]() ![]() |
Obtains the color that corresponds to a given theme brush type under the current theme.
pascal OSStatus GetThemeBrushAsColor (
ThemeBrush inBrush,
SInt16 inDepth,
Boolean inColorDev,
RGBColor *outColor);
The GetThemeBrushAsColor function obtains a color that corresponds to that which is in use for a specified theme brush. If, in the current theme, the specified brush draws with a pattern instead of a color, a theme-specified approximate color is obtained. Your application should call GetThemeBrushAsColor only when you must use an RGBColor value for a specific operation; typically, your application should call the functions SetThemeBackground and SetThemePen for greatest fidelity with the current theme.